import { createApp } from 'vue';
import 'ant-design-vue/dist/reset.css';
import '@/design/index.less';
import App from './App.vue';
import { setupStore } from './store/store';
import { setupI18n } from './locales/setupI18n';
import { setupRouter } from './router';
import { setupGlobDirectives } from './directives';

// 注册图标
import 'virtual:svg-icons-register';

async function bootstrap() {
  const app = createApp(App);

  setupStore(app);

  await setupI18n(app);

  setupRouter(app);

  setupGlobDirectives(app);

  app.mount('#app');
}

void bootstrap();
